import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/list",
    component:() => import("@/pages/list"),
  },
  {
    path: "/detail/:productid",
    component:() => import("@/pages/detail"),

  },
];

const router = new VueRouter({
  routes,
});

export default router;
